from mongodb import mongoDBPool
from setup import *

db = mongoDBPool.getConnection()
print('feeds ------')
print(db['feeds'].count())
print('users ------')
print(db['users'].count())
print('passwords ------')
for k in db['users'].find({ "email" : "lnyarl@gmail.com"} ):
	print(k['password'])
print('titles ------')
for k in db['feeds'].find({ "items.author" : "mage"} ):
	for j in k['items']:
		print(j['title'])

mongoDBPool.drop();
